<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    最基础react应用
    <!-- 2. 根节点 -->
    <div id="app"></div>
    <!-- 1. 引入react依赖 -->
    <script type="text/javascript" src="../js/react.development.js"></script>
    <!-- 用于react操作dom -->
    <script type="text/javascript" src="../js/react-dom.development.js"></script>
    <!-- babel将jsx转为js -->
    <script type="text/javascript" src="../js/babel.min.js"></script>
    <!-- 3. type需声明使用babel翻译 -->
    <script type="text/babel">
    //  创建虚拟dom
    const vDom = <h1 id="title"><span>hello world</span></h1>
    // 渲染dom
    ReactDOM.render(vDom, document.getElementById('app'))
    </script>

</body>
</html>